package com.zmc.member.infrastructure.bean.vo;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author：zmc
 */

@Data
public class MemberVo implements Serializable {

    @NotBlank(message = "图像不能为空")
    private String avatar;

    /**
     * 用户名
     */
    @NotBlank(message = "账户名不能为空")
    @Size(min = 2, max = 15, message = "账户名长度在2-15之间")
    private String username;

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空")
    @Size(min = 2, max = 15, message = "昵称长度在2-15之间")
    private String nickname;

    private String mobile;

    /**
     * 邮箱
     */
    @NotBlank(message = "用户名不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;
    /**
     * 性别
     */
    private Integer gender;
    /**
     * 生日
     */
    private LocalDateTime birth;
    /**
     * 职业
     */
    private String job;
    /**
     * 个性签名
     */
    private String sign;
}
